package br.com.edoc.conf;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class EmailAutenticador extends Authenticator  {
	private String email;
	
	private String senha;

	
	public EmailAutenticador(String email, String senha) {
		super();
		this.email = email;
		this.senha = senha;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getSenha() {
		return senha;
	}

	public void setSenha(String senha) {
		this.senha = senha;
	}

	@Override
	protected PasswordAuthentication getPasswordAuthentication() {
		// TODO Auto-generated method stub
		return new PasswordAuthentication (getEmail(),getSenha());
	}
	
	
}
